/**
 * 
 */
package com.taobao.client.buyer.custom;

import com.google.gwt.dom.client.Element;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Button;
import com.taobao.client.obj.TopOrder;
import com.taobao.client.obj.TopTrade;

/**
 * 
 * @author hujingfei.pt@taobao.com
 * 
 */
public class CustomButton extends Button {
	// the trade
	private TopTrade trade;
	// The id of the trade
	private String tradeId;
	// The id of the refund
	private String refundId;
	// The id of the item
	private String iid;
	
	//a trade maby has many orders;
	private TopOrder o;
	
	private double discount;
	public double getDiscount() {
		return discount;
	}

	public void setDiscount(double discount) {
		this.discount = discount;
	}

	//子订单备注
	private String memo = "";
	
	//父订单备注
	private String tradeMemo = "";

	public TopTrade getTrade() {
		return trade;
	}

	public void setTrade(TopTrade trade) {
		this.trade = trade;
	}

	/**
	 * 
	 */
	public CustomButton() {
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param html
	 */
	public CustomButton(String html) {
		super(html);
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param element
	 */
	public CustomButton(Element element) {
		super(element);
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param html
	 * @param handler
	 */
	public CustomButton(String html, ClickHandler handler) {
		super(html, handler);
		// TODO Auto-generated constructor stub
	}

	/**
	 * @return the tradeId
	 */
	public String getTradeId() {
		return tradeId;
	}

	/**
	 * @param tradeId
	 *            The tradeId to set
	 */
	public void setTradeId(String tradeId) {
		this.tradeId = tradeId;
	}

	/**
	 * @return the refundId
	 */
	public String getRefundId() {
		return refundId;
	}

	/**
	 * @param refundId
	 *            The refundId to set
	 */
	public void setRefundId(String refundId) {
		this.refundId = refundId;
	}

	/**
	 * @return the iid
	 */
	public String getIid() {
		return iid;
	}

	/**
	 * @param iid
	 *            the item id to set
	 */
	public void setIid(String iid) {
		this.iid = iid;
	}

	public void setOrder(TopOrder o) {
		this.o = o;
	}
	public TopOrder getOrder(){
		return o;
	}
	
	public void setTradeMemo(String memo){
		this.tradeMemo = memo;
	}
	
	public String getTradeMemo(){
		return tradeMemo;
	}

	/**
	 * 子订单备注,不同于订单备注
	 * @param memo
	 */
	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getMemo() {
		return memo;
	};
}
